package com.fxp.project.jiuselu.web.models.order.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单商品明细表
 * </p>
 *
 * @author Jason.Wang
 * @since 2021-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class JslOrderGoods implements Serializable {
    /**
     * 订单编号;订单表中订单标号
     */
    @TableId("order_id")
    private String orderId;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 购买数量
     */
    @TableField("goods_num")
    private Integer goodsNum;

    /**
     * 商品单价
     */
    @TableField("goods_price")
    private BigDecimal goodsPrice;

    /**
     * 商品规格id
     */
    @TableField("goods_attr_id")
    private Long goodsAttrId;

    /**
     * 规格名称
     */
    @TableField("goods_attr_name")
    private String goodsAttrName;

    /**
     * 规格图片
     */
    @TableField("goods_attr_image")
    private String goodsAttrImage;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private Integer cancelStatus;

    @TableField(exist = false)
    private BigDecimal attrWeight;
}
